<?php

use think\Db;
use PHPMailer\PHPMailer\PHPMailer;
use sina\sina;
use think\Session;

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件
function error($msg, $level, $ErrorFunctionName, $ReductionOfRights = null, $user_info = null)
{
    if ($ReductionOfRights) {
        $bbs_settings = Db::table('bbs_settings')
            ->where('id = 1')
            ->find();
        if ($user_info['number_of_violations'] > 2) {
            Db::table('user')
                ->where([
                    'email' => $user_info['email'],
                    'password' => $user_info['password'],
                    'user_name' => $user_info['user_name'],
                    'id' => $user_info['id'],
                ])
                ->update([
                    'user_jurisdiction' => $user_info['user_jurisdiction'] - $bbs_settings['violations_numerical'],
                    'number_of_violations' => $user_info['number_of_violations'] + 1,
                ]);
            Db::table('bbs_violations')
                ->insert([
                    'user_id' => $user_info['id'],
                    'violations_info' => $msg,
                    'level' => $level,
                    'time' => time(),
                    'datetime' => date('Y-m-d H:i:s'),
                ]);
        } else {
            Db::table('user')
                ->where([
                    'email' => $user_info['email'],
                    'password' => $user_info['password'],
                    'user_name' => $user_info['user_name'],
                    'id' => $user_info['id'],
                ])
                ->update([
                    'number_of_violations' => $user_info['number_of_violations'] + 1,
                ]);
            Db::table('bbs_violations')
                ->insert([
                    'user_id' => $user_info['id'],
                    'violations_info' => $msg,
                    'level' => $level,
                    'time' => time(),
                    'datetime' => date('Y-m-d H:i:s'),
                ]);
        }
    }
    Db::table('bbs_error')
        ->insert([
            'msg' => $msg,
            'level' => $level,
            'error_location' => $ErrorFunctionName,
            'error_time' => date('Y-m-d H:i:s'),
            'error_ip' => request()->ip(),
        ]);
}

/**
 * 邮件发送
 *
 * @param string $mail_name 邮件标题
 * @param string $tomail 发送给谁
 * @param string $body 内容
 * @param string $subject 主题
 * @param array $attachment 附件Array绝对路径
 * @return bool
 */
function D_Mail($mail_name, $tomail,  $body, $subject = '', $attachment = null)
{
    $mail = new PHPMailer(); //实例化PHPMailer对象
    $mail->CharSet = 'UTF-8'; //设定邮件编码，默认ISO-8859-1，如果发中文此项必须设置，否则乱码
    $mail->IsSMTP(); // 设定使用SMTP服务
    $mail->SMTPDebug = 0; // SMTP调试功能 0=关闭 1 = 错误和消息 2 = 消息
    $mail->SMTPAuth = true; // 启用 SMTP 验证功能
    $mail->SMTPSecure = 'ssl'; // 使用安全协议
    $mail->Host = "smtp.qq.com"; // SMTP 服务器
    $mail->Port = 465; // SMTP服务器的端口号
    $mail->Username = "202184199@qq.com"; // SMTP服务器用户名
    $mail->Password = "kdrpbhwydtbsbjig"; // SMTP服务器密码（如果设置独立密码请填空独立密码）
    $mail->SetFrom('202184199@qq.com', $mail_name);
    $replyEmail = ''; //留空则为发件人EMAIL
    $replyName = ''; //回复名称（留空则为发件人名称）
    $mail->AddReplyTo($replyEmail, $replyName);
    $mail->Subject = $subject;
    $mail->MsgHTML($body);
    $mail->AddAddress($tomail, '');
    if (is_array($attachment)) { // 添加附件
        foreach ($attachment as $file) {
            is_file($file) && $mail->AddAttachment($file);
        }
    }
    return $mail->Send() ? true : false;
}
function domain()
{
    $request = request()->instance();
    $domain = $request->domain() . '/';
    return $domain;
}
function deleteDataTime($str)
{
    $patten = "/^\d{4}[\-](0?[1-9]|1[012])[\-](0?[1-9]|[12][0-9]|3[01])(\s+(0?[0-9]|1[0-9]|2[0-3])\:(0?[0-9]|[1-5][0-9])\:(0?[0-9]|[1-5][0-9])(0?[0-9]|[1-5][0-9]))/";
    return preg_replace($patten, "", $str);
}
function sinaUpdate($FilePath)
{
    $sina = new sina();
    $return = $sina->upload($FilePath, $sina->login('17660712176', 'juyaobin'), false);
    $new = json_decode($return, true);
    $pic_1 = $new['data']['pics']['pic_1'];
    $pid = $pic_1['pid'];
    $img = $sina->getImageUrl($pid, 0);
    return $img;
}
function ip_pv()
{
    $ip = request()->ip();
    if (Session::get('date')) {
        if (Session::get('date') == date('Y-m-d')) { } else {
            $start = Db::table('ip')->where("`ip`='$ip'")->find();
            if (!$start) {
                Db::table('ip')->insert(['ip' => $ip, 'date' => date('Y-m-d')]);
                $number = Db::table('traffic')->where(['date' => date('Y-m-d')])->find();
                if ($number) {
                    Db::table('traffic')->where(['date' => date('Y-m-d')])->update(['number' => $number['number'] + 1]);
                    session('date', date('Y-m-d'));
                } else {
                    Db::table('traffic')->insert(['date' => date('Y-m-d'), 'number' => 1]);
                    session('date', date('Y-m-d'));
                }
            }
        }
    } else {
        $start = Db::table('ip')->where("`ip`='$ip'")->find();
        if (!$start) {
            Db::table('ip')->insert(['ip' => $ip, 'date' => date('Y-m-d')]);
            $number = Db::table('traffic')->where(['date' => date('Y-m-d')])->find();
            if ($number) {
                Db::table('traffic')->where(['date' => date('Y-m-d')])->update(['number' => $number['number'] + 1]);
                session('date', date('Y-m-d'));
            } else {
                Db::table('traffic')->insert(['date' => date('Y-m-d'), 'number' => 1]);
                session('date', date('Y-m-d'));
            }
        }
    }
}


function head($select_li_1 = '', $select_li_2 = '', $select_li_3 = '', $select_li_4 = ['start' => '', 'class_name' => '查看列表', 'id' => 0])
{
    $request = request();
    $url = $request->url();
    $login_url = url('bbs/loginandreg/index');
    $user_info = Session::get('bbs_user_info');
    $html = '';
    $html .= <<<ETO
  <link rel="stylesheet" href="/public/bbs/head_src/style.css">
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1339588_fng95709deb.css"><!-- 图标 -->

        <div class="global layui-bg-black" style="margin-bottom: 30px">
            <div class="global layui-main" style="margin-bottom: 30px">
                <ul class="global layui-nav" lay-filter="bigData">
                    <li class="global layui-nav-item $select_li_1"><a href="/bbs/classification/index">论坛首页</a></li>
                    <li class="global layui-nav-item $select_li_2"><a href="">读文章</a></li>
                    <li class="global layui-nav-item $select_li_3"><a href="$url">发布帖子</a></li>
                    <li class="global layui-nav-item $select_li_4[start]">
                        <a href="javascript:;">$select_li_4[class_name]</a>
                        <dl class="global layui-nav-child">
ETO;
    if ($select_li_4['id'] == 0) {
        $html .= '<dd><a href="">请选择主分类</a></dd>';
    } else {
        $bbs_classification_son = Db::table('bbs_classification_son')
            ->where([
                'son_class_start' => 0,
                'main_class_id' => $select_li_4['id']
            ])
            ->select();
        foreach ($bbs_classification_son as $key => $value) {
            $html .= "<dd><a href='/bbs/articlelist/index.html?alias=$value[son_class_alias]'>$value[son_class_name]</a></dd>";
        }
    }
    $html .= <<<ETO
                        <!-- 二级菜单 -->
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="">社区</a>
                    </li>
                    <div class="global nav-select"><!-- 搜索 -->
                        <form style="width:200px" action="/bbs/select/index" class="global fly-search">
					    	<i class="global iconfont icon-sousuo"></i>
					    	<input class="global layui-input" autocomplete="off" placeholder="搜索内容" type="text" name="q">
					    </form>
                    </div>
        
                    <div class="global layui-nav-item " style='float:right' lay-filter="layadmin-layout-right">
ETO;
    if ($user_info) {
        if ($user_info['nickname']) {
            $name = $user_info['nickname'];
        } else {
            $name = $user_info['user_name'];
        }
        $html .= <<<ETO
                                    <div class="global layui-nav-item" lay-filter="layadmin-layout-right">

                                        <li  class="global layui-nav-item">
                                            <a href="javascript:;">
                                            <a class="global avatar">
                                                <img src="$user_info[head_src]">
                                                <cite>$name</cite>
                                            </a>
                                            <dl class="global layui-nav-child layui-anim layui-anim-upbit"> 
                                            <a class="global dropdown-item p-0">
                                              <div class="global d-flex border-bottom">
                                                <div class="global px-3">
                                                  <i class="global iconfont icon-mail-fill"></i>
                                                </div>
                                                <div  onclick='window.location.href="/bbs/task/index"' class="global px-3 border-left border-right">
                                                  <i class="global iconfont icon-flag-fill"></i>
                                                </div>
                                                <div class="global px-3">
                                                  <i class="global iconfont icon-user"></i>
                                                </div>
                                              </div>
                                            </a>
                                            <a class="global dropdown-item mt-2">
                                              Manage Accounts
                                            </a>
                                            <a class="global dropdown-item">
                                              Change Password
                                            </a>
                                            <a class="global dropdown-item">
                                              Check Inbox
                                            </a>
                                            <a class="global dropdown-item">
                                              Sign Out
                                            </a>
                                            </dl>
                                        </li>
                                    </div>
                                </div>
                                    
ETO;
    } else {

        $html .= <<<ETO
                                    <div class="global layui-nav-item" lay-filter="layadmin-layout-right">
                                        <li  class="global layui-nav-item">
                                            <a href="javascript:;">
                                            
                                                <a class="global iconfont icon-touxiang layui-hide-xs" style="margin-top: 4px; display: inline-block;">
                                                    未登录
                                                </a>
                                            </a>
                                            <dl class="global layui-nav-child layui-anim layui-anim-upbit"> 
                                                <dd>
                                                <a href="$login_url?url=$url"  target="_parent" >登录</a>
                                                </dd>
                                                <dd>
                                                <div  lay-filter="layadmin-layout-right">
                                                <a href="register.html" target="_parent" >注册</a>
                                                </div>
                                                </dd>
                                            </dl>
                                        </li>
                                    </div>
                                </div>
ETO;
    }
    $html .= <<<ETO
                </ul>
            </div>
        </div>

   

        <script>
        layui.use('element', function () {
            //实例化element
            var element = layui.element();
            //初始化动态元素，一些动态生成的元素如果不设置初始化，将不会有默认的动态效果
            element.init();
            //导航条点击监听
            
        })

        $("#exit").on("click",function(){ 
            $.ajax({
                type: "POST",
                url: "/bbs/loginandreg/login_out",
                data: {
                },
                dataType: "json",
                success: function (response) {
                    window.location.reload()
                }
            });
        })
    </script>
ETO;
    //     $html .= <<<ETO
    //         <div class="header">
    // 			<div class="main">
    // 				<a class="title" href="/bbs/classification/index.html" target="_parent" title="浦江"> 
    // 					浦江你问去我答社区</a>
    // 				<!---<div class="nav">
    // 					<a class="nav-this" href="index.html">
    // 						<i class="iconfont icon-wenda"></i>你问我答</a>
    //                 </div>--->
    // 				<div class="nav-select">
    //                     <form style="width:200px" action="/bbs/select/index" class="fly-search">
    // 						<i class="iconfont icon-sousuo"></i>
    // 						<input class="layui-input" autocomplete="off" placeholder="搜索内容" type="text" name="q">
    // 					</form>
    //                 </div>
    // 				<div class="nav-user">
    // ETO;
    //     if ($user_info) {
    //         if ($user_info['nickname']) {
    //             $name = $user_info['nickname'];
    //         } else {
    //             $name = $user_info['user_name'];
    //         }
    //         $html .= <<<ETO
    // 					<div class="nav">
    // 					    <a class="avatar">
    // 					    	<img src="$user_info[head_src]">
    // 					    	<cite>$name</cite>
    // 					    </a>
    //                             <a>
    //                                 <i class="iconfont icon-tuichu " style="top: 0; font-size: 22px;"></i>退出
    //                             </a>
    //                     </div>

    // ETO;
    //     } else {

    //         $html .= <<<ETO
    //                     <a class="iconfont icon-touxiang layui-hide-xs" style="margin-top: 4px; display: inline-block;">
    //                     </a>
    //                     <div class="nav" style="font-size:14px;color: white;margin-top: -5px;margin-left: 1px; "  />
    //                     	<a href="$login_url?url=$url"  target="_parent" >登录</a>
    //                     	<a href="register.html" target="_parent" >注册</a>
    //                     </div>
    // ETO;
    //     }
    //     $html .= <<<ETO

    // 				</div>
    // 			</div>
    //         </div>
    // ETO;
    return $html;
}

/**
 * 生成随机字符串
 *
 * @param inr $length
 * @param string $type
 * @return void
 */
function randstr($length = 6, $type = 'all')
{
    $config = array(
        'number' => '1234567890',
        'letter' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
        'string' => 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789',
        'all' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
    );

    if (!isset($config[$type]))
        $type = 'string';
    $string = $config[$type];

    $code = '';
    $strlen = strlen($string) - 1;
    for ($i = 0; $i < $length; $i++) {
        $code .= $string{
            mt_rand(0, $strlen)};
    }
    return $code;
}


/**
 * todo:创建验证码图片 最长36 位
 * @param int $type 类型 【1】纯数字，【2】纯字母，【3】数字加字母
 * @param int $length
 * @return bool|string
 */
function createCode($type = 3, $length = 5)
{
    if ($type == 1) {
        $verifyCode = implode('', range(0, 9));
    } elseif ($type == 2) {
        $verifyCode = implode('', array_merge(range('a', 'z')));
    } else {
        $verifyCode = implode('', array_merge(range('a', 'z'), range(0, 9)));
    }

    //判断生成字符是否符合要求
    if (strlen($verifyCode) < $length) {
        return false;
    }
    //打乱字符串
    $verifyCode = str_shuffle($verifyCode);
    return substr($verifyCode, 0, $length);
}

/**
 * todo:生成图片,并加入干扰线，干扰素
 * @param int $type 随机字符串类型
 * @param int $length 字符长度
 * @param int $width 图片宽度
 * @param int $height 图片高度
 */
function createImage($type = 3, $length = 5, $width = 80, $height = 30)
{
    $verifyCode = createCode($type, $length);
    session('loginandreg_qrcode', $verifyCode);
    $image  = imagecreatetruecolor($width, $height);
    $white = imagecolorallocate($image, 255, 255, 255);
    $fontStyle = imagecolorallocate($image, rand(0, 255), rand(0, 255), rand(0, 255));;
    imagefill($image, 0, 0, $white);
    imagettftext($image, 20, 0, 5, 20, $fontStyle, 'public/bbs/loginandreg/font/font.ttc', $verifyCode);
    //加入干扰点
    for ($i = 0; $i < 80; $i++) {
        $color = imagecolorallocate($image, rand(0, 255), rand(0, 255), rand(0, 255));
        imagesetpixel($image, rand(0, $width), rand(0, $height), $color);
    }
    //干扰线
    for ($i = 0; $i < 5; $i++) {
        $color = imagecolorallocate($image, rand(0, 255), rand(0, 255), rand(0, 255));
        imageline($image, rand(0, $width), rand(0, $height), rand(0, $width), rand(0, $height), $color);
    }
    // return $image;
    ob_clean();
    imagepng($image);
    return 'data:image/png;base64,' . base64_encode(ob_get_clean());
    #base64 编码
}

/**
 * 返回json格式
 *
 * @param array $array 输入一个array
 * @return string
 */
function json_return($array)
{
    return json_decode(json_encode($array));
}

/**
 * rsa加密
 *
 * @param string $str 字符串
 * @return string
 */
function rsa_encode($str)
{

    $bbs_settings = Db::table('bbs_settings')
        ->where([
            'id' => 1
        ])
        ->field('rsa_public')
        ->find();
    $pu_key = $bbs_settings['rsa_public'];

    openssl_public_encrypt($str, $encrypted, $pu_key); //公钥加密

    $encrypted = (base64_encode($encrypted));

    $encrypted = urlencode($encrypted);

    // echo $encrypted;
    return $encrypted;
}
/**
 * rsa解密
 *
 * @param string $str 字符串
 * @return string
 */
function rsa_decode($str)
{

    $bbs_settings = Db::table('bbs_settings')
        ->where([
            'id' => 1
        ])
        ->field('rsa_private')
        ->find();
    $pi_key = $bbs_settings['rsa_private'];

    openssl_private_decrypt(base64_decode(urldecode($str)), $decrypted, $pi_key); //私钥解密

    return $decrypted; //通过私钥解密后的字符串数据

}
function VerificationCodeString($code, $head = '尊敬的预注册会员：', $srt1 = '欢迎您注册本网站,')
{
    $html = <<<ERO
    
    <div id="contentDiv" onmouseover="getTop().stopPropagation(event);" onclick="getTop().preSwapLink(event, 'html', 'ZC1025-wcY99~EY3NE5Njpm4wEQF95');" style="position:relative;font-size:14px;height:auto;padding:15px 15px 10px 15px;z-index:1;zoom:1;line-height:1.7;" class="body">    <div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="">        <table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
    <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
    <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
    <td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
        <div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
            <table class="main" width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff">
                <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    <td class="content-wrap aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 20px;" align="center" valign="top">
                        <table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                            <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                    <h1 class="aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 32px; color: #000; line-height: 1.2em; font-weight: 500; text-align: center; margin: 40px 0 0;" align="center">CloverDownLoad</h1>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                    <h2 class="aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 24px; color: #000; line-height: 1.2em; font-weight: 400; text-align: center; margin: 40px 0 0;" align="center">欢迎您注册CloverDownLoad的论坛系统</h2>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                    <table class="invoice" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; text-align: left; width: 80%; margin: 40px auto;">
                                        <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" valign="top">$head<br style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            </td>
                                        </tr>
                                        
                                        <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" valign="top">
                                                  <p>$srt1 您的验证码为<a style="color:red"> $code </a>验证码十五分钟之内有效<br>
                                            </p></td>
                                        </tr>
                                        
                                    </tbody></table>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                    <a href="https://cloverdownload.mmqogy.cn" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #348eda; text-decoration: underline; margin: 0;" rel="noopener" target="_blank">CloverDownLoad</a>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                </td>
                            </tr>
                        </tbody></table>
                    </td>
                </tr>
            </tbody></table>
            <div class="footer" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
                <table width="100%" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    </tr>
                </tbody></table>
            </div>
        </div>
    </td>
        <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
    </tr>
    </tbody></table>


    <style type="text/css">.qmbox style, .qmbox script, .qmbox head, .qmbox link, .qmbox meta {display: none !important;}</style></div></div><!-- --><style>#mailContentContainer .txt {height:auto;}</style>  </div>



ERO;
    return $html;
}

/**
 * 生成分页
 *
 * @param int $count 总数量
 * @param int $page_size 每页多少条
 * @param int $p 当前页数
 * @param array $where_str 额外的条件
 * @param string $page_name 分页的变量名 默认page
 * @param string $prefix_path 具体那个文件域名
 * @return string
 */
function getPageHtml($count, $page_size, $p = 1, $where_str = [], $page_name = 'page', $prefix_path = '')
{
    $previousPage = $p - 1;
    if ($previousPage < 1) $previousPage = 1;
    $nextPage = $p + 1;
    $lastPage = ceil($count / $page_size);
    if ($lastPage <= 1) return '';
    if ($nextPage > $lastPage) $nextPage = $lastPage;
    if ($where_str) {
        $where_str = http_build_query(array_merge($where_str)) . '&';
    } else {
        $where_str = '';
    }
    $pageHtml = <<<EOT
            <div id='page_list' style="text-align: center">
                <div class="global laypage-main">
            <a href="{$prefix_path}?{$where_str}{$page_name}=1" class="global laypage-last" title="首页">首页</a>

EOT;

    if ($p - 1 <= 0) {
        $pageHtml .= <<<EOT
                    <a href="javascript:alert('已经是第一页了');" class="global laypage-next">上一页</a>
EOT;
    } else {
        $pageHtml .= <<<EOT
                    <a href="{$prefix_path}?{$where_str}{$page_name}={$previousPage}" class="global laypage-next">上一页</a>

EOT;
    }

    if ($p - 2 > 1) {
        $now_p = $p - 2;
        $pageHtml .= <<<EOT
                <a href="{$prefix_path}?{$where_str}{$page_name}={$now_p}">{$now_p}</a>
EOT;
    }
    if ($p - 1 >= 1) {
        $now_p = $p - 1;
        $pageHtml .= <<<EOT
                <a href="{$prefix_path}?{$where_str}{$page_name}={$now_p}">{$now_p}</a>
EOT;
    }

    $pageHtml .= <<<EOT
                <span class="global laypage-curr">{$p}</span>
EOT;

    if ($p + 1 <= $lastPage) {
        $now_p = $p + 1;
        $pageHtml .= <<<EOT
                <a href="{$prefix_path}?{$where_str}{$page_name}={$now_p}">{$now_p}</a>
EOT;
    }
    if ($p + 2 <= $lastPage) {
        $now_p = $p + 2;
        $pageHtml .= <<<EOT
                <a href="{$prefix_path}?{$where_str}{$page_name}={$now_p}">{$now_p}</a>

EOT;
    }

    if ($p + 1 > $lastPage) {
        $pageHtml .= <<<EOT
            <a href="javascript:alert('已经是最后一页了');" class="global laypage-next">下一页</a>
EOT;
    } else {
        $pageHtml .= <<<EOT
            <a href="{$prefix_path}?{$where_str}{$page_name}={$nextPage}" class="global laypage-next">下一页</a>
EOT;
    }

    $pageHtml .= <<<EOT
            <a href="{$prefix_path}?{$where_str}{$page_name}=$lastPage" class="global laypage-last" title="末页">末页</a>
            </div>
            </div>

EOT;
    return $pageHtml;
}
function bbs_admin_menu_hend()
{
    $Console = ''; //侧边栏控制台
    $Console_index = ''; //侧边栏控制台的首页
    $ArticleManagement = ''; //侧边文章管理
    $ViewTheTistOfArticles = ''; //侧边查看文章
    $article_info_settings = ''; //文章详细设置
    $management_to_be_audited = ''; //待审核列表
    $ClassifiedManagement = ''; //侧边分类管理
    $ViewCategories = ''; //侧边查看分类
    $category_management = ''; //分类的子类别管理
    $permission_to_read = ''; //侧边阅读权限管理
    $permission_to_read_index = ''; //阅读权限管理第一项
    $publishing_tasks_list = ''; //发布权限任务列表
    $publishing_tasks = ''; //发布权限任务
    switch (request()->controller()) {
        case 'Index':
            $Console = 'hover open';
            switch (request()->action()) {
                case 'index':
                    $Console_index = 'hover open';
                    break;
            }
            break;
        case 'Articlemanagement':
            $ArticleManagement = 'hover open';
            switch (request()->action()) {
                case 'viewthetistofarticles':
                    $ViewTheTistOfArticles = 'hover open';
                    break;
                case 'index':
                    $ViewTheTistOfArticles = 'hover open';
                    break;
                case 'selectarticleslist':
                    $ViewTheTistOfArticles = 'hover open';
                    break;
                case 'article_info_settings':
                    $article_info_settings = 'hover open';
                    break;
                case 'management_to_be_audited':
                    $management_to_be_audited = 'hover open';
                    break;
            }
            break;
        case 'Classifiedmanagement':
            $ClassifiedManagement = 'hover open';
            switch (request()->action()) {
                case 'index':
                    $ViewCategories = 'hover open';
                    break;
                case 'category_management':
                    $category_management = 'hover open';
                    break;
            }
            break;
        case 'PermissionToRead':
            $permission_to_read = 'hover open';
            switch (request()->action()) {
                case 'index':
                    $permission_to_read_index = 'hover open';
                    break;
                case 'publishing_tasks_list':
                    $publishing_tasks_list = 'hover open';
                    break;
                case 'publishing_tasks':
                    $publishing_tasks = 'hover open';
                    break;
            }
            break;

        default:
            break;
    }
    // echo request()->controller();
    // exit;
    // echo request()->action();
    // exit;
    return <<<ETP
    <!-- main menu-->
    <div data-scroll-to-active="true" class="main-menu menu-fixed menu-dark menu-accordion menu-shadow">
        <!-- main menu header-->
        <div class="main-menu-header">
            <input type="text" placeholder="Search" class="menu-search form-control round" /></div>
        <!-- / main menu header-->
        <!-- main menu content-->
        <div class="main-menu-content">
            <ul id="main-menu-navigation" data-menu="menu-navigation" class="navigation navigation-main">
                <li class="nav-item $Console">
                    <a href="index.html">
                        <i class="icon-home3"></i>
                        <span class="menu-title ">控制台</span>
                        <span class="tag tag tag-primary tag-pill float-xs-right mr-2">2</span></a>
                    <ul class="menu-content">
                        <li class='$Console_index'>
                            <a href="/bbs_admin/index" class="menu-item">后台首页</a></li>
                        <li>
                            <a href="dashboard-2.html" class="menu-item">Dashboard 2</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-stack-2"></i>
                        <span class="menu-title">Page layouts</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="layout-1-column.html" class="menu-item">1 column</a></li>
                        <li>
                            <a href="layout-2-columns.html" class="menu-item">2 columns</a></li>
                        <li>
                            <a href="layout-boxed.html" class="menu-item">Boxed layout</a></li>
                        <li>
                            <a href="layout-static.html" class="menu-item">Static layout</a></li>
                        <li class="navigation-divider"></li>
                        <li>
                            <a href="layout-light.html" class="menu-item">Light layout</a></li>
                        <li>
                            <a href="layout-dark.html" class="menu-item">Dark layout</a></li>
                        <li>
                            <a href="layout-semi-dark.html" class="menu-item">Semi dark layout</a></li>
                    </ul>
                </li>
                <li class="nav-item $ArticleManagement">
                    <a href="#">
                        <i class="icon-briefcase4"></i>
                        <span class="menu-title">文章管理</span></a>
                    <ul class="menu-content">
                        <li class='$ViewTheTistOfArticles'>
                            <a href="/bbs_admin/ArticleManagement/ViewTheTistOfArticles" class="menu-item">查看文章列表</a></li>
                        <li class='$article_info_settings'>
                            <a href="/bbs_admin/ArticleManagement/article_info_settings" class="menu-item">文章详细设置</a></li>
                        <li class='$management_to_be_audited'>
                            <a href="management_to_be_audited" class="menu-item">待审核管理</a></li>
                        <li>
                            <a href="search-website.html" class="menu-item">Search Website</a></li>
                        <li>
                            <a href="login-simple.html" class="menu-item">Login Simple</a></li>
                        <li>
                            <a href="register-simple.html" class="menu-item">Register Simple</a></li>
                        <li>
                            <a href="unlock-user.html" class="menu-item">Unlock User</a></li>
                        <li>
                            <a href="recover-password.html" class="menu-item">Recover Password</a></li>
                        <li>
                            <a href="#" class="menu-item">Error</a>
                            <ul class="menu-content">
                                <li>
                                    <a href="error-400.html" class="menu-item">Error 400</a></li>
                                <li>
                                    <a href="error-401.html" class="menu-item">Error 401</a></li>
                                <li>
                                    <a href="error-403.html" class="menu-item">Error 403</a></li>
                                <li>
                                    <a href="error-404.html" class="menu-item">Error 404</a></li>
                                <li>
                                    <a href="error-500.html" class="menu-item">Error 500</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="coming-soon-flat.html" class="menu-item">Coming Soon</a></li>
                        <li>
                            <a href="under-maintenance.html" class="menu-item">Maintenance</a></li>
                    </ul>
                </li>
                <li class="$ClassifiedManagement nav-item">
                    <a>
                        <i class="icon-ios-albums-outline"></i>
                        <span class="menu-title">分类管理</span></a>
                    <ul class="menu-content">
                        <li class='$ViewCategories'>
                            <a href="/bbs_admin/ClassifiedManagement/index" class="menu-item">查看分类</a></li>
                        <li class='$category_management'>
                            <a href="/bbs_admin/ClassifiedManagement/category_management" class="menu-item">分类的子分类管理</a></li>
                    </ul>
                </li>
                <li class=" nav-item $permission_to_read">
                    <a href="#">
                        <i class="icon-whatshot"></i>
                        <span class="menu-title">阅读权限管理</span></a>
                    <ul class="menu-content">
                        <li class='$permission_to_read_index'>
                            <a href="/bbs_admin/permission_to_read/index" class="menu-item">阅读权限列表</a></li>
                        <li class='$publishing_tasks_list'>
                            <a href="/bbs_admin/permission_to_read/publishing_tasks_list" class="menu-item">权限任务发布列表</a></li>
                        <li class='$publishing_tasks'>
                            <a href="/bbs_admin/permission_to_read/publishing_tasks" class="menu-item">权限任务发布</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-compass3"></i>
                        <span class="menu-title">Content</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="content-grid.html" class="menu-item">Grid</a></li>
                        <li>
                            <a href="content-typography.html" class="menu-item">Typography</a></li>
                        <li>
                            <a href="content-text-utilities.html" class="menu-item">Text utilities</a></li>
                        <li>
                            <a href="content-helper-classes.html" class="menu-item">Helper classes</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-grid2"></i>
                        <span class="menu-title">Components</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="component-alerts.html" class="menu-item">Alerts</a></li>
                        <li>
                            <a href="component-buttons-basic.html" class="menu-item">Basic Buttons</a></li>
                        <li>
                            <a href="component-carousel.html" class="menu-item">Carousel</a></li>
                        <li>
                            <a href="component-collapse.html" class="menu-item">Collapse</a></li>
                        <li>
                            <a href="component-dropdowns.html" class="menu-item">Dropdowns</a></li>
                        <li>
                            <a href="component-list-group.html" class="menu-item">List Group</a></li>
                        <li>
                            <a href="component-modals.html" class="menu-item">Modals</a></li>
                        <li>
                            <a href="component-pagination.html" class="menu-item">Pagination</a></li>
                        <li>
                            <a href="component-navs-component.html" class="menu-item">Navs Component</a></li>
                        <li>
                            <a href="component-tabs-component.html" class="menu-item">Tabs Component</a></li>
                        <li>
                            <a href="component-pills-component.html" class="menu-item">Pills Component</a></li>
                        <li>
                            <a href="component-tooltips.html" class="menu-item">Tooltips</a></li>
                        <li>
                            <a href="component-popovers.html" class="menu-item">Popovers</a></li>
                        <li>
                            <a href="component-tags.html" class="menu-item">Tags</a></li>
                        <li>
                            <a href="component-pill-tags.html" class="menu-item">Pill Tags</a></li>
                        <li>
                            <a href="component-progress.html" class="menu-item">Progress</a></li>
                        <li>
                            <a href="component-media-objects.html" class="menu-item">Media Objects</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-eye6"></i>
                        <span class="menu-title">Icons</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="icons-feather.html" class="menu-item">Feather</a></li>
                        <li>
                            <a href="icons-ionicons.html" class="menu-item">Ionicons</a></li>
                        <li>
                            <a href="icons-fps-line.html" class="menu-item">FPS Line Icons</a></li>
                        <li>
                            <a href="icons-ico-moon.html" class="menu-item">Ico Moon</a></li>
                        <li>
                            <a href="icons-font-awesome.html" class="menu-item">Font Awesome</a></li>
                        <li>
                            <a href="icons-meteocons.html" class="menu-item">Meteocons</a></li>
                        <li>
                            <a href="icons-evil.html" class="menu-item">Evil Icons</a></li>
                        <li>
                            <a href="icons-linecons.html" class="menu-item">Linecons</a></li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a href="form-layout-basic.html">
                        <i class="icon-paper"></i>
                        <span class="menu-title">Basic Forms</span></a>
                </li>
                <li class="nav-item">
                    <a href="table-basic.html">
                        <i class="icon-table2"></i>
                        <span class="menu-title">Basic Tables</span></a>
                </li>
                <li class="nav-item">
                    <a href="#">
                        <i class="icon-bar-graph-2"></i>
                        <span class="menu-title">google Charts</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="google-bar-charts.html" class="menu-item">Bar charts</a></li>
                        <li>
                            <a href="google-line-charts.html" class="menu-item">Line charts</a></li>
                        <li>
                            <a href="google-pie-charts.html" class="menu-item">Pie charts</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-stats-dots"></i>
                        <span class="menu-title">Chartjs</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="chartjs-line-charts.html" class="menu-item">Line charts</a></li>
                        <li>
                            <a href="chartjs-bar-charts.html" class="menu-item">Bar charts</a></li>
                        <li>
                            <a href="chartjs-pie-doughnut-charts.html" class="menu-item">Pie &amp; Doughnut charts</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-pie-graph2"></i>
                        <span class="menu-title">Flot Charts</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="flot-line-charts.html" class="menu-item">Line charts</a></li>
                        <li>
                            <a href="flot-bar-charts.html" class="menu-item">Bar charts</a></li>
                        <li>
                            <a href="flot-pie-charts.html" class="menu-item">Pie charts</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-map22"></i>
                        <span class="menu-title">Maps</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="gmaps-basic-maps.html" class="menu-item">Maps</a></li>
                        <li>
                            <a href="vector-maps-jvq.html" class="menu-item">Vector Maps</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-paint-format"></i>
                        <span class="menu-title">Color Palette</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="color-palette-primary.html" class="menu-item">Primary palette</a></li>
                        <li>
                            <a href="color-palette-danger.html" class="menu-item">Danger palette</a></li>
                        <li>
                            <a href="color-palette-success.html" class="menu-item">Success palette</a></li>
                        <li>
                            <a href="color-palette-warning.html" class="menu-item">Warning palette</a></li>
                        <li>
                            <a href="color-palette-info.html" class="menu-item">Info palette</a></li>
                        <li class="navigation-divider"></li>
                        <li>
                            <a href="color-palette-red.html" class="menu-item">Red palette</a></li>
                        <li>
                            <a href="color-palette-pink.html" class="menu-item">Pink palette</a></li>
                        <li>
                            <a href="color-palette-purple.html" class="menu-item">Purple palette</a></li>
                        <li>
                            <a href="color-palette-deep-purple.html" class="menu-item">Deep Purple palette</a></li>
                        <li>
                            <a href="color-palette-indigo.html" class="menu-item">Indigo palette</a></li>
                        <li>
                            <a href="color-palette-blue.html" class="menu-item">Blue palette</a></li>
                        <li>
                            <a href="color-palette-light-blue.html" class="menu-item">Light Blue palette</a></li>
                        <li>
                            <a href="color-palette-cyan.html" class="menu-item">Cyan palette</a></li>
                        <li>
                            <a href="color-palette-teal.html" class="menu-item">Teal palette</a></li>
                        <li>
                            <a href="color-palette-green.html" class="menu-item">Green palette</a></li>
                        <li>
                            <a href="color-palette-light-green.html" class="menu-item">Light Green palette</a></li>
                        <li>
                            <a href="color-palette-lime.html" class="menu-item">Lime palette</a></li>
                        <li>
                            <a href="color-palette-yellow.html" class="menu-item">Yellow palette</a></li>
                        <li>
                            <a href="color-palette-amber.html" class="menu-item">Amber palette</a></li>
                        <li>
                            <a href="color-palette-orange.html" class="menu-item">Orange palette</a></li>
                        <li>
                            <a href="color-palette-deep-orange.html" class="menu-item">Deep Orange palette</a></li>
                        <li>
                            <a href="color-palette-brown.html" class="menu-item">Brown palette</a></li>
                        <li>
                            <a href="color-palette-blue-grey.html" class="menu-item">Blue Grey palette</a></li>
                        <li>
                            <a href="color-palette-grey.html" class="menu-item">Grey palette</a></li>
                    </ul>
                </li>
                <li class=" nav-item">
                    <a href="changelog.html">
                        <i class="icon-copy"></i>
                        <span class="menu-title">Changelog</span>
                        <span class="tag tag tag-pill tag-danger float-xs-right">1.0</span></a>
                </li>
                <li class="disabled nav-item">
                    <a href="#">
                        <i class="icon-eye-disabled"></i>
                        <span class="menu-title">Disabled Menu</span></a>
                </li>
                <li class=" nav-item">
                    <a href="#">
                        <i class="icon-android-funnel"></i>
                        <span class="menu-title">Menu levels</span></a>
                    <ul class="menu-content">
                        <li>
                            <a href="#" class="menu-item">Second level</a></li>
                        <li>
                            <a href="#" class="menu-item">Second level child</a>
                            <ul class="menu-content">
                                <li>
                                    <a href="#" class="menu-item">Third level</a></li>
                                <li>
                                    <a href="#" class="menu-item">Third level child</a>
                                    <ul class="menu-content">
                                        <li>
                                            <a href="#" class="menu-item">Fourth level</a></li>
                                        <li>
                                            <a href="#" class="menu-item">Fourth level</a></li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li class=" navigation-header">
                    <span data-i18n="nav.category.support">Support</span>
                    <i data-toggle="tooltip" data-placement="right" data-original-title="Support" class="icon-ellipsis icon-ellipsis"></i>
                </li>
                <li class=" nav-item">
                    <a href="https://github.com/pixinvent/robust-free-bootstrap-admin-template/issues">
                        <i class="icon-support"></i>
                        <span class="menu-title">Raise Support</span></a>
                </li>
                <li class=" nav-item">
                    <a href="https://pixinvent.com/free-bootstrap-template/robust-lite/documentation">
                        <i class="icon-document-text"></i>
                        <span class="menu-title">Documentation</span></a>
                </li>
            </ul>
        </div>
        <!-- /main menu content-->
        <!-- main menu footer-->
        <!-- include includes/menu-footer-->
        <!-- main menu footer--></div>
    <!-- / main menu-->
ETP;
}
function article_info_settings_extended_settings_msg($info)
{
    $html = <<<ERO
    
    <div id="contentDiv" onmouseover="getTop().stopPropagation(event);" onclick="getTop().preSwapLink(event, 'html', 'ZC1025-wcY99~EY3NE5Njpm4wEQF95');" style="position:relative;font-size:14px;height:auto;padding:15px 15px 10px 15px;z-index:1;zoom:1;line-height:1.7;" class="body">    <div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="">        <table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
    <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
    <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
    <td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
        <div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
            <table class="main" width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff">
                <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    <td class="content-wrap aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 20px;" align="center" valign="top">
                        <table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                            <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                    <h1 class="aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 32px; color: #000; line-height: 1.2em; font-weight: 500; text-align: center; margin: 40px 0 0;" align="center">CloverDownLoad</h1>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
                                    <h2 class="aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; box-sizing: border-box; font-size: 24px; color: #000; line-height: 1.2em; font-weight: 400; text-align: center; margin: 40px 0 0;" align="center">您的文章信息已被修改</h2>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                    <table class="invoice" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; text-align: left; width: 80%; margin: 40px auto;">
                                        <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" valign="top">以下是被修改的相信信息<br style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            </td>
                                        </tr>
                                        
                                        <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                            <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" valign="top">
                                                  <p>$info<br>
                                            </p></td>
                                        </tr>
                                        
                                    </tbody></table>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                    <a href="https://cloverdownload.mmqogy.cn" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #348eda; text-decoration: underline; margin: 0;" rel="noopener" target="_blank">CloverDownLoad</a>
                                </td>
                            </tr>
                            <tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                                <td class="content-block aligncenter" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">
                                </td>
                            </tr>
                        </tbody></table>
                    </td>
                </tr>
            </tbody></table>
            <div class="footer" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
                <table width="100%" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    <tbody><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
                    </tr>
                </tbody></table>
            </div>
        </div>
    </td>
        <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
    </tr>
    </tbody></table>
    
    
    <style type="text/css">.qmbox style, .qmbox script, .qmbox head, .qmbox link, .qmbox meta {display: none !important;}</style></div></div><!-- --><style>#mailContentContainer .txt {height:auto;}</style>  </div>



ERO;
    return $html;
}
